package com.myblog.myblog.dao;

import com.myblog.myblog.poge.Comment;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CommentRepository extends JpaRepository<Comment,Long> {

    Comment findByParentCommentId(Long parentCommentId);

    List<Comment> findByBlogIdAndParentCommentNull(Long blogId, Sort sort);
}
